import request from '@/utils/request'

// 列表
export function getDataList(query) {
  return request({
    url: '/car/carWorkOrder/list',
    method: 'get',
    params: query
  })
}

export function prchaseTaxDetail(data) {
  return request({
    url: '/car/prchaseTax/workPurchaseList',
    method: 'post',
    data: data
  })
}

// 查询详细
export function getTaxDetails(id) {
  return request({
    url: `/car/prchaseTax/${id}`,
    method: 'get',
  })
}


// 新增购置税信息
export function addPrchaseTax(data) {
  return request({
    url: '/car/prchaseTax',
    method: 'post',
    data: data
  })
}

//购置税小程序处理数据回显
export function miniProgramInfo(data) {
  return request({
    url: '/car/prchaseTax/miniProgramInfo',
    method: 'post',
    data
  })
}

export function unifyCheck(data) {
  return request({
    url: '/car/carWorkOrder/check',
    method: 'post',
    data: data
  })
}
